package day4.作业1026.作业01;

public class Cat extends Pet {
    protected int tili;

    public Cat(String name, int health, int love, int tili) {
        super(name, health, love);
        this.tili = tili;
    }
    protected void catchMouse(){
        super.show();
        System.out.println("抓到了老鼠");
    }

    @Override
    protected void show() {
        super.show();
        System.out.println("黑猫白猫抓住老鼠就是好猫");
    }

    @Override
    public void eat() {
        super.health+=40;
        System.out.println(name+"吃鱼");
    }
}
